package com.liu.webstore.service;

import com.liu.webstore.entity.DiscussPost;
import org.springframework.data.domain.Page;

import java.io.IOException;

/**
 * @Author LiuYumei
 * @Date 2022/8/21 8:45
 */
public interface ElasticsearchService {
    void saveDiscussPost(DiscussPost post);

    void deleteDiscussPostById(int id);

    Page<DiscussPost> searchDiscussPost(String keyword, int current, int limit) throws IOException;
}
